Simple vs. Compound Interest C code